import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const outsourced: AppRouteModule = {
  path: '/outsourced',
  name: 'outsourced',
  component: LAYOUT,
  redirect: '/outsourced/outsourcedWorkPlace',
  meta: {
    orderNo: 13,
    icon: 'ion:construct-sharp',
    title: t('routes.demo.outsourced.outsourcedManager'),
  },
  children: [
    {
      path: 'outsourcedWorkPlace',
      name: 'outsourcedWorkPlace',
      meta: {
        title: t('routes.demo.outsourced.outsourcedWorkPlace'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/outsourcedManager/index.vue'),
    },
  ],
};

export default outsourced;
